
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html><!-- InstanceBegin template="/Templates/template.dwt.jsp" codeOutsideHTMLIsLocked="false" -->
    <head>
      
        <!-- InstanceBeginEditable name="doctitle" -->
        <title>Misure su reti di calcolatori - gruppo 2</title>
                <%@ page contentType="text/html; charset=iso-8859-1" language="java" import ="java.util.ArrayList, it.unisannio.lesim.fsm.*" errorPage="error.jsp" %>
	<jsp:useBean id="Messages" class="java.util.ArrayList" scope="session" ></jsp:useBean>
        <jsp:useBean id="FSM" class="java.util.ArrayList" scope="session" ></jsp:useBean>
        <!-- InstanceEndEditable -->
        <meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {color: #EC5600}
-->
</style>
<!-- InstanceBeginEditable name="head" -->
<style type="text/css">
<!--
.style2 {color: #6B6B6B}
-->
</style>

<style type="text/css">
<!--
.style_green {color: #00FF00}
-->
</style>

<style type="text/css">
<!--
.style_red {color: #FF0000}
-->
</style>
<style type="text/css">
<!--
.style_yellow {color: #A2A200}
-->
</style>
<!-- InstanceEndEditable -->
    </head>
<body>
<div id="header">
  <div id="logo"><a href="http://lesim1.ing.unisannio.it"><img src="images/logo_misure.png" alt="" /></a></div>
  <div id="menu">
  </div>
</div>
<div id="splash2"><a href="#"></a></div>
<div id="content">
  <div id="colOne"><!-- InstanceBeginEditable name="center" -->		<h2>visualizza risultati </h2>
	    
		
              <table align="center">
                  <tr>
                       <td width="200" height="30" align="center"><strong>FSM</strong></td>
                       <td width="200" height="30" align="center"><strong>Stato Corrente</strong></td>
                       <td width="400" height="30" align="center"><strong>Descrizione Stato Corrente</strong></td>
                  </tr>
              <% for(int i=0;i<FSM.size();i++) {
		  FSM ff = (FSM)FSM.get(i); %>
                  
<%if(ff.getCurrentState().isIsFinal() && !ff.getCurrentState().isIsError()){%>
                        <tr class="style_green">
                    <%}else if(!ff.getCurrentState().isIsFinal()){%>
                        <tr class="style_yellow">
                  <%}else{%>
                        <tr class="style_red">
                  <%}%>
                        
                      <td width="200" height="30" align="center"><strong><%out.println(ff.getName());%></strong></td>
                      <td width="200" height="30" align="center"><%out.println(ff.getCurrentState().getName());%></td>
                      <td width="400" height="30" align="center"><%out.println(ff.getCurrentState().getDescription());%></td>
                  </tr>
                  <tr><td height="30"/></tr>
                    
              <% } %>
              

              </table>
              <table border="0" align="center" cellspacing="3" bgcolor="#EFEFEF">
<tr>
                       <td width="200" height="30" align="center"><strong>Legenda Colori</strong></td>
                       <td width="200" height="30" align="center" class="style_green"><strong>Test Negativo</strong></td>
                       <td width="200" height="30" align="center" class="style_red"><strong>Test Positivo (macchina terminata)</strong></td>
                       <td width="200" height="30" align="center" class="style_yellow"><strong>Test Positivo (macchina non terminata)</strong></td>
                  </tr>
                  
              </table>
                
                
                
                
	<p align="center">&nbsp;</p>
    <div class="posted"><span class="style1 style2">selezione conversazione</span> -&gt; <span class="style2">selezione messaggi</span> -&gt; <span class="style2">selezione FSM</span> -&gt; <span class="style2">run</span> -&gt; <span class="style1">visualizza risultati </span></div>
<!-- InstanceEndEditable -->
  </div>
	<div id="colTwo">
		<h3>menu</h3>
		<ul>
			<li><a href="index.jsp">home</a></li>
	  </ul>
        <p><a href="http://lesim1.ing.unisannio.it/MatDidattico/MisRetiCalc/Gruppi/Gruppo2/Index.html">progetto lesim</a></p>
        <p><a href="def_fsm.jsp">definizione FSM</a></p>
        <p><a href="fsm.jsp">modifica FSM</a></p>
        <p><a href="/AnalizzatoreSip/ReadFSMforDelete">elimina FSM</a></p>
	</div><div style="clear: both;">&nbsp;</div>
</div>
<div id="footer">
	<p>(c) 2008 Misure su reti di calcolatori.</p>
</div>
</body><!-- InstanceEnd --></html>

